﻿using System;
using System.Text.RegularExpressions;

namespace ConsoleApp
{
    [AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = false)]
    public class RegexReplaceAttribute : Attribute
    {
        public string Pattern { get; set; }
        public string Replacement { get; set; }

        public RegexReplaceAttribute(string pattern = null, string replacement = null)
        {
            this.Pattern = pattern;
            this.Replacement = replacement;
        }
    }
}
